package com.ydsungan.worldbook.dao;

import com.ydsungan.worldbook.pojo.Book;
import com.ydsungan.worldbook.pojo.User;

import java.util.List;
import java.util.Map;

public interface BookDao {
    int addBook(Book book);
    int updateBook(Book book);

    List<Book> getBookByMap(Map<String, Object> map);
    List<Book> getBookOrderByDownloadNum(int limit);
}
